package com.ydx.meituan.config;


import org.apache.logging.log4j.LogManager;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * 程序完全启动后执行
 */
@Configuration
public class ApplicationStartup implements ApplicationListener<ContextRefreshedEvent> {


    private static org.apache.logging.log4j.Logger logger = LogManager.getLogger(ApplicationStartup.class);


    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
                    logger.info("初始化base...");
        }


    }


